package com.liwei.vip.mall.goods.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("brand")
public class Brand {
    //ID(主键）
    @TableId(type = IdType.AUTO,value = "id")
    private Integer id;
    //品牌名字
    private String name;
    //品牌图片
    private String initial;
    //排序
    private Integer sort;


    //分类
    @TableField(exist = false)
    private List<Category> categories;
}
